<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
      name="viewport"
    />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>#{title}</title>

    <!-- 页面级（静态资源）loading 样式文件 -->
    <link
      rel="stylesheet"
      href="/resource/pc-fe-static/css/page-loading.css?v=20220411.0001"
    />
    <script type="text/javascript">if(/DingTalk/.test(navigator.userAgent)){document.write('<script src="//g.alicdn.com/dingding/dingtalk-pc-api/2.8.0/index.js"><\/script>')}</script>
  </head>

  <body>
    <!-- 动态渲染页面级（静态资源）loading -->
    <%= htmlWebpackPlugin.options.isShowPageLoading %>
    <script type="text/javascript">
      window._AMapSecurityConfig = {
        serviceHost: 'https://cloud.shb.ltd/_AMapService',
        // 例如 ：serviceHost:'http://1.1.1.1:80/_AMapService',
      };
    </script>
    <script src="https://webapi.amap.com/loader.js"></script>
    <script type="text/javascript">
      let __initAmap = () => {
        return new Promise((resolve, reject) => {
          AMapLoader.load({
            plugins: ['AMap.ToolBar', 'AMap.Driving', 'AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.Geolocation'],
            key: '811588be3c76d165ff1b16c738065a7b', // 申请好的Web端开发者Key，首次调用 load 时必填
            version: '1.4.15', // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
          })
            .then(AMap => {
              resolve()
              console.log('*****AMapLoader success*****', AMap);
            })
            .catch(e => {
              reject()
              console.error('*****AMapLoader error*****', e); //加载错误提示
            });
        });
      };
      __initAmap();
    </script>
    <script data-init="js">
      window._init = '#{initJson}';
    </script>

    <!-- <script src="https://webapi.amap.com/maps?v=1.4.15&key=34a87903ee2dff36f84744786f7e8c35"></script> -->

    <!-- tiny富文本 -->
    <script src="https://static.shb.ltd/tinymce/5.10.4.tinymce.min.js"></script>

    <!-- 全局提示 -->
    <script src="https://file.shb.ltd/shb-resource/js/baseTip.js"></script>
    <link rel="stylesheet" type="text/css" href="https://file.shb.ltd/shb-resource/js/baseTip.css" >

    <div id="app"></div>
  </body>
</html>
